set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11 -O3")
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)

macro(add_example name)
	# 添加可执行程序名称
	add_executable(${name} ${name}.cpp)
	# 设置安装后的动态库调用地址
	set_target_properties(${name} PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
	target_link_libraries(${name} PUBLIC gctl)
	#target_link_libraries(${name} PUBLIC OpenMP::OpenMP_CXX)
endmacro()

#add_example(eemd_ex)
#add_example(ceemdan_ex)
#add_example(fft_ex)
#add_example(fir_filter_ex)
#add_example(fft_filter_ex)
#add_example(windowfunc_ex)
#add_example(legendre_ex)
#add_example(refellipsoid_ex)
#add_example(kde_ex)
add_example(meshio_ex)